package com.itheima.d1_static_field;

public class Student {
   /* // 类变量
    static String name;
    // 实例变量（对象的变量）
    int age;*/

    static char sex;

    int price;

    //------------test2

    static int x;
    int y;
    static int count=0;
    public Student(){
        count+=1;
    }

    @Override
    public String toString() {
        return "Student{x=" +Student.x+
                ",y=" + y +
                ", count=" + count +
                '}';
    }
}
